package cn.cs.mapper;

import cn.cs.pojo.CommonFailures;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommonFailuresMapper {

    public CommonFailures getCommonFailuresById(@Param(value = "id") String id) throws Exception;

    public List<CommonFailures> getCommonFailuresListByMap(Map<String, Object> param) throws Exception;

    public Integer getCommonFailuresCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertCommonFailures(CommonFailures commonFailures) throws Exception;

    public Integer updateCommonFailures(CommonFailures commonFailures) throws Exception;

    public Integer deleteCommonFailuresById(@Param(value = "id") String id) throws Exception;

}
